﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data.AID;

namespace Business.AID
{
    public class ConsideracaoBO
    {
        public void CreateConsideration(Consideracao consideration)
        {
            ConsideracaoDAO consideracaoDAO = new ConsideracaoDAO();
            consideracaoDAO.CreateConsideration(consideration);
        }
        public void DeleteConsiderationsByGoal(int idGoal)
        {
            List<Consideracao> listConsideration = GetAllConsiderationsByGoal(idGoal);

            ConsideracaoDAO consideracaoDAO = new ConsideracaoDAO();
            consideracaoDAO.DeleteConsiderationByGoal(listConsideration);
        }
        public List<Consideracao> GetAllConsiderationsByGoal(int idGoal)
        {
            ConsideracaoDAO consideracaoDAO = new ConsideracaoDAO();
            return consideracaoDAO.GetAllConsiderationsByGoal(idGoal);
        }
    }
}
